package xidian.vlab.utils;

import xidian.vlab.dto.ResJsonDTO;

public class ResUtil {
    public static ResJsonDTO OK(){
        return new ResJsonDTO(2000,"成功", null);
    }
    public static ResJsonDTO OK(Object data){
        return new ResJsonDTO(2000,"成功", data);
    }
    public static ResJsonDTO ERROR(){
        return new ResJsonDTO(4000, "错误", null);
    }
    public static ResJsonDTO ERROR(String msg){
        return new ResJsonDTO(4000, msg, null);
    }
}
